package com.ruoyi.project.business.iotchip.entity;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.model.BaseEntity;

/**
 * 芯片设备基本信息管理对象 iot_chip
 * 
 * @author ${author}
 * @date 2024-07-19
 */
@Data
public class Chip extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 设备所属用户 */
    @Excel(name = "设备所属用户")
    private Long userId;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String code;

    /** 设备名 */
    @Excel(name = "设备名")
    private String name;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String type;
    private String mac;

    /** 设备状态：探测是否在线 0: 离线 1: 在线 */
    @Excel(name = "设备状态：探测是否在线 0: 离线 1: 在线")
    private Integer status;

    /** 是否删除 0:否 1:是 */
    @Excel(name = "是否删除 0:否 1:是")
    private Boolean deleted;

    /** 事件操作人id */
    @Excel(name = "事件操作人id")
    private Long creator;

    /** 事件更新人id */
    @Excel(name = "事件更新人id")
    private Long updater;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("status", getStatus())
            .append("deleted", getDeleted())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("tenantId", getTenantId())
            .toString();
    }
}
